<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
	
<ui:composition>
 		<!-- Bang du lieu -->
		<h:form>
 				 
				  <rich:dataTable id="list" onRowMouseOver="this.style.backgroundColor=''#F1F1F1'"
                        onRowMouseOut="this.style.backgroundColor=''#F1F1F1'"
                        columnClasses="column" headerClass="TableHeader"
						rowClasses="ROW1,ROW2" footerClass="TableFooter" 
						cellpadding="1" cellspacing="1" 
                    	width="500" border="0"                     
                        var="Item" value="#{nopNhanHC.listPerson}" rows="7">                       	       
					   <f:facet name="header">
                        <rich:columnGroup>
                            <rich:column colspan="4" style="backgroundColor:#FFFFFF">
                                <h:outputText value="Thông tin hộ chiếu nộp nhận" />
                            </rich:column>
                            <rich:column rowspan="2">
                                <h:outputText value="Tổng số lần nộp nhận" />
                            </rich:column>
                            <rich:column breakBefore="true">
                                <h:outputText value="STT" />
                            </rich:column>
                             <rich:column>
                                <h:outputText value="Số hộ chiếu" />
                            </rich:column>
                            <rich:column>
                                <h:outputText value="Thao tác" />
                            </rich:column>
                            <rich:column>
                                <h:outputText value="Ngày thao tác" />
                            </rich:column>  
                        </rich:columnGroup>

                    </f:facet>
				   
			      <rich:column  colspan="5" valign="left">
				      <h:outputText style="margin-left:1px;" value="#{Item.tenNguoi}" />
				  </rich:column>					
				  
			<rich:subTable onRowMouseOver="this.style.backgroundColor=''#F1F1F1'"
                        onRowMouseOut="this.style.backgroundColor=''#F1F1F1'"
                        columnClasses="column" headerClass="TableHeader"
						rowClasses="ROW1,ROW2" footerClass="TableFooter"                       
                        var="detail" value="#{Item.listNopNhan}">                       
                      <rich:column>
                            <h:outputText value="#{detail.stt}">
                            </h:outputText>
                             <f:facet name="footer">
                                <h:outputText value="">
                                </h:outputText>
                            </f:facet>                            
                        </rich:column>

                        <rich:column>
                            <h:outputText value="#{detail.soHC}">
                            </h:outputText>
                             <f:facet name="footer">
                                <h:outputText value="">
                                </h:outputText>
                            </f:facet>                            
                        </rich:column>

                        <rich:column>
                            <h:outputText value="#{detail.thaoTac}">
                            </h:outputText>
                             <f:facet name="footer">
                                <h:outputText value="">
                                </h:outputText>
                            </f:facet>                            
						</rich:column>
						
                        <rich:column>
                            <h:outputText value="#{detail.ngayThaoTac}">
                            </h:outputText>
                             <f:facet name="footer">
                                <h:outputText value="">
                                </h:outputText>
                            </f:facet>                            
                        </rich:column>      
                        
                        <rich:column>
                            <rich:spacer></rich:spacer>
                            <f:facet name="footer">
                                <h:outputText value="#{Item.tongNopNhan}" style=" color: red;">
                                </h:outputText>
                            </f:facet>
                      </rich:column>                                  
			    </rich:subTable>
       </rich:dataTable>
        	<!-- phan trang -->
						<rich:datascroller align="right"  for="list" maxPages="9" />
						<!-- ket thuc phan trang -->
			</h:form>
		<!-- Ket thuc bang du lieu -->	
</ui:composition>
</html>

              